From 7d3a0af6cf13c01b65509f46269eb18e05bde6bb Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 11 Aug 2005 17:11:10 +0000 Subject: [PATCH] Display sym and name in GDB. --- gdb.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb.c b/gdb.c index d17c7a5d4..7418f000d 100644 --- a/gdb.c +++ b/gdb.c @@ -65,6 +65,12 @@ # define GDB_UTF8_ENABLED 0 #endif +typedef enum { + GDB_DISPLAY_SYMBOL_ONLY = 0, + GDB_DISPLAY_SYMBOL_AND_NAME = 1, + GDB_DISPLAY_SYMBOL_AND_COMMENT = 2, +} gdb_display_type; + /* %%% local vars %%% */ FILE *fin, *fout; @@ -1196,8 +1202,8 @@ gdb_write_waypt(const waypoint *wpt, const int hidden) gdb_fwrite_int((wpt->garmin_data != NULL) ? wpt->garmin_data->display : 0); /* display */ gdb_fwrite_int((wpt->garmin_data != NULL) ? wpt->garmin_data->colour : 0); /* colour */ #else - gdb_fwrite_int(0); /* display */ - gdb_fwrite_int(0); /* colour */ + gdb_fwrite_int(GDB_DISPLAY_SYMBOL_AND_NAME); /* display */ + gdb_fwrite_int(0); /* colour */ #endif gdb_fwrite_icon(wpt); /* icon */ gdb_fwrite_str("", -1); /* city */ -- 2.30.2